<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>Bootstrap 实例</title>

	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
	 crossorigin="anonymous">

</head>

<body>
	<section class="container">
		<div class="card my-4">
			<div class="card-header">
				<h5 class="text-primary">信息提示框</h5>
			</div>
			<div class="card-body">
				<div class="alert alert-success">
					<strong>成功!</strong> 指定操作成功提示信息。
				</div>
				<div class="alert alert-info">
					<strong>信息!</strong> 请注意这个信息。
				</div>
				<div class="alert alert-warning">
					<strong>警告!</strong> 设置警告信息。
				</div>
				<div class="alert alert-danger">
					<strong>错误!</strong> 失败的操作
				</div>
				<div class="alert alert-primary">

					<strong>首选!</strong> 这是一个重要的操作信息。
				</div>
				<div class="alert alert-secondary">

					<strong>次要的!</strong> 显示一些不重要的信息。
				</div>
				<div class="alert alert-dark">

					<strong>深灰色!</strong> 深灰色提示框。
				</div>
				<div class="alert alert-light">

					<strong>浅灰色!</strong>浅灰色提示框。
				</div>
			</div>
		</div>
		<div class="card my-4">
			<div class="card-header">
				<h5 class="text-primary">关闭提示框</h5>
			</div>
			<div class="card-body">
				<div class="alert alert-success alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>成功!</strong> 指定操作成功提示信息。
				</div>
				<div class="alert alert-info alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>信息!</strong> 请注意这个信息。
				</div>
				<div class="alert alert-warning alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>警告!</strong> 设置警告信息。
				</div>
				<div class="alert alert-danger alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>错误!</strong> 失败的操作。
				</div>
				<div class="alert alert-primary alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>首选!</strong> 这是一个重要的操作信息。
				</div>
				<div class="alert alert-secondary alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>次要的!</strong> 显示一些不重要的信息。
				</div>
				<div class="alert alert-dark alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>深灰色!</strong> 深灰色提示框。
				</div>
				<div class="alert alert-light alert-dismissable">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>浅灰色!</strong>浅灰色提示框。
				</div>
			</div>
		</div>
	</section>

	<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
</body>

</html>